package com.bonuo.crm.service.impl;

import com.bonuo.crm.domain.IndustryEducation;
import com.bonuo.crm.mapper.IndustryEducationMapper;
import com.bonuo.crm.service.IndustryEducationService;
import com.ruoyi.common.annotation.DataScope;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IndustryEducationServiceImpl implements IndustryEducationService {
    @Autowired
    private IndustryEducationMapper industryEducationMapper;
    @Override
    @DataScope(provinceAlias = {"industry_education"})
    public List<IndustryEducation> selectIndustryEducationList(IndustryEducation industryEducation) {
        return industryEducationMapper.selectIndustryEducationList(industryEducation);
    }

    @Override
    public int insertIndustryEducation(IndustryEducation industryEducation) {
        return industryEducationMapper.insertIndustryEducation(industryEducation);
    }

    @Override
    public int updateIndustryEducation(IndustryEducation industryEducation) {
        return industryEducationMapper.updateIndustryEducation(industryEducation);
    }

    @Override
    public int deleteIndustryEducationById(Integer id) {
        return industryEducationMapper.deleteIndustryEducationById(id);
    }
}
